import request from '@/utils/request'

// 查询质量检验单列表
export function listNcQualityInspectionOrder(query) {
  return request({
    url: '/business/NcQualityInspectionOrder/list',
    method: 'get',
    params: query
  })
}

// 查询质量检验单详细
export function getNcQualityInspectionOrder(id) {
  return request({
    url: '/business/NcQualityInspectionOrder/' + id,
    method: 'get'
  })
}

// 新增质量检验单
export function addNcQualityInspectionOrder(data) {
  return request({
    url: '/business/NcQualityInspectionOrder',
    method: 'post',
    data: data
  })
}

// 修改质量检验单
export function updateNcQualityInspectionOrder(data) {
  return request({
    url: '/business/NcQualityInspectionOrder',
    method: 'put',
    data: data
  })
}

// 删除质量检验单
export function delNcQualityInspectionOrder(id) {
  return request({
    url: '/business/NcQualityInspectionOrder/' + id,
    method: 'delete'
  })
}
